Matthias Clasen [Sun, 7 Jan 2018 17:54:06 +0000 (12:54 -0500)]
Revert "file chooser: Allow activating without double-click"
This reverts commit
fb0a13b7f070a14312dafa1e4df6ba03cf33be01.
It is getting in the way of gesture conversion, and didn't
really make anybody happy anyway.
Matthias Clasen [Sun, 7 Jan 2018 16:25:55 +0000 (11:25 -0500)]
app chooser: Use a gesture
Instead of connecting to ::button-press-event, use
a multipress gesture here.
Matthias Clasen [Sun, 7 Jan 2018 15:45:07 +0000 (10:45 -0500)]
Remove a leftover icon-size property
This made the 'style classes' demo crash.
Matthias Clasen [Sat, 6 Jan 2018 23:18:38 +0000 (18:18 -0500)]
Drop ::focus-in/out-event
These signals are no longer used in GTK+.
If you need to catch focus events, use the ::event signal.
Matthias Clasen [Sat, 6 Jan 2018 23:10:11 +0000 (18:10 -0500)]
treeview: Stop using ::focus-out-event
We can just use the generic ::event signal.
Matthias Clasen [Sat, 6 Jan 2018 23:04:24 +0000 (18:04 -0500)]
file chooser entry: Stop using ::focus-out-event
Just use the generic ::event signal.
Matthias Clasen [Sat, 6 Jan 2018 22:53:20 +0000 (17:53 -0500)]
spin button: Stop using ::focus-out-event
Just use the generic ::event signal.
Matthias Clasen [Sat, 6 Jan 2018 22:52:56 +0000 (17:52 -0500)]
calendar: Stop using ::focus-out-event
Use the generic ::event signal.
Matthias Clasen [Sat, 6 Jan 2018 20:35:54 +0000 (15:35 -0500)]
color editor: stop using ::focus-out-event
Again, the has-focus property is sufficient.
Matthias Clasen [Sat, 6 Jan 2018 20:12:04 +0000 (15:12 -0500)]
text cell renderer: Stop using ::focus-out-event
The has-focus property works fine here.
Matthias Clasen [Sat, 6 Jan 2018 20:09:26 +0000 (15:09 -0500)]
spin cell renderer: Stop using ::focus-out-event
The has-focus property works fine here.
Matthias Clasen [Sat, 6 Jan 2018 20:06:12 +0000 (15:06 -0500)]
combo cell renderer: Stop using ::focus-out-event
The has-focus property works fine here.
Matthias Clasen [Sat, 6 Jan 2018 17:29:29 +0000 (12:29 -0500)]
tests: Stop using ::focus-in/out-event
The has-focus property works just as well here.
Matthias Clasen [Sat, 6 Jan 2018 17:21:31 +0000 (12:21 -0500)]
popover: Stop using ::focus-in/out-event
We can use the is-active property of the window instead.
Matthias Clasen [Sat, 6 Jan 2018 17:11:40 +0000 (12:11 -0500)]
application: Stop using ::focus-in-event
We are really interested in the active window, so use
that property directly.
Matthias Clasen [Sat, 6 Jan 2018 17:51:33 +0000 (12:51 -0500)]
window: Stop using ::focus-in/out-event
We can just use the generic ::event.
Matthias Clasen [Sat, 6 Jan 2018 17:41:02 +0000 (12:41 -0500)]
text view: Stop using ::focus-in/out-event
We can just use the generic ::event here.
Matthias Clasen [Sat, 6 Jan 2018 17:03:30 +0000 (12:03 -0500)]
entry completion: Stop using ::focus-out-event
We can just use ::event.
Matthias Clasen [Sat, 6 Jan 2018 16:49:51 +0000 (11:49 -0500)]
entry: Stop using ::focus-in/out-event
We can just use the generic ::event signal.
Matthias Clasen [Sat, 6 Jan 2018 16:48:53 +0000 (11:48 -0500)]
a11y: Stop using ::focus-in/out-event
We can just use the generic ::event signal.
Matthias Clasen [Wed, 3 Jan 2018 02:58:46 +0000 (21:58 -0500)]
Drop gtk_widget_hide_on_delete
This function is misnamed - it is only ever relevant for
windows. And with the ::hide-on-delete property , it is
no longer necessary to use the signal for this simple case.
Matthias Clasen [Tue, 2 Jan 2018 23:03:59 +0000 (18:03 -0500)]
Drop ::event-after
This signal is not used in GTK+, and we are reducing the
amount of widget signals devoted to events in favor of
event controllers.
Matthias Clasen [Tue, 2 Jan 2018 22:05:08 +0000 (17:05 -0500)]
Drop ::grab-broken-event
This signal is no longer used in GTK+. Grab broken events
can be handled with the generic ::event signal.
Matthias Clasen [Tue, 2 Jan 2018 22:00:39 +0000 (17:00 -0500)]
button: Stop using ::grab-broken-event
The event-specific signals are going away. Just use ::event here.
Matthias Clasen [Tue, 2 Jan 2018 22:00:12 +0000 (17:00 -0500)]
menushell: Stop using ::grab-broken
The event-specific signals are going away. Just use ::event here.
Matthias Clasen [Tue, 16 Jan 2018 03:54:03 +0000 (22:54 -0500)]
notebook: some cleanup
Matthias Clasen [Tue, 2 Jan 2018 21:29:38 +0000 (16:29 -0500)]
notebook: Use a motion event controller
This lets us avoid the ::motion-notify-event handler.
Matthias Clasen [Tue, 2 Jan 2018 20:45:52 +0000 (15:45 -0500)]
textview: Use a motion event controller
This lets us replace the ::motion-notify-event handler.
Matthias Clasen [Tue, 2 Jan 2018 18:37:02 +0000 (13:37 -0500)]
Drop ::enter/leave-notify-event
These signals are no longer used in GTK+ and have a (not quite
perfect yet) replacement with GtkEventControllerMotion.
If you need to catch the raw events, the generic ::event
signal still works.
Matthias Clasen [Tue, 2 Jan 2018 18:22:36 +0000 (13:22 -0500)]
menu: Use a motion event controller
This lets us replace the ::enter/leave-notify-event handlers.
Not that there is a FIXME here - we currently can't get the
crossing mode from the event controller, so we have to fall
back to gtk_get_current_event().
Matthias Clasen [Tue, 2 Jan 2018 16:07:56 +0000 (11:07 -0500)]
menuitem: Use a motion event controller
This lets us replace the ::enter/leave-notify-event handlers.
Not that there is a FIXME here - we currently can't get the
crossing mode from the event controller, so we have to fall
back to gtk_get_current_event().
Matthias Clasen [Tue, 2 Jan 2018 04:48:32 +0000 (23:48 -0500)]
iconview: Use a motion event controller
This can replace ::motion-notify-event and ::leave-notify-event.
Matthias Clasen [Tue, 2 Jan 2018 04:25:10 +0000 (23:25 -0500)]
scrolled window: Use a motion event controller
This lets use replace one of the last uses of ::leave-notify-event.
Matthias Clasen [Tue, 2 Jan 2018 04:08:46 +0000 (23:08 -0500)]
entry completion: Drop initial selection avoidance
This is a minor thing, and it is hard to recreate
with event controllers, so drop it for now.
Matthias Clasen [Tue, 2 Jan 2018 01:24:28 +0000 (20:24 -0500)]
treeview: Use a motion event controller
This replaces handlers for ::enter/leave/motion-notify-event.
Matthias Clasen [Tue, 2 Jan 2018 01:07:24 +0000 (20:07 -0500)]
Add x/y to GtkEventControllerMotion::enter
We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.
Update existing users.
Matthias Clasen [Mon, 1 Jan 2018 23:25:35 +0000 (18:25 -0500)]
Drop ::configure-event
This signal is unused in GTK+ and configure events are handled
internally by GtkWindow.
If you need to catch configure events, the generic ::event
signal still works.
Matthias Clasen [Mon, 1 Jan 2018 23:18:37 +0000 (18:18 -0500)]
window: Stop using ::configure-event
We already have a generic ::event handler that we
can just press into service for this.
Matthias Clasen [Mon, 1 Jan 2018 23:18:11 +0000 (18:18 -0500)]
testgtk: Stop using ::configure-event
Matthias Clasen [Mon, 1 Jan 2018 22:50:15 +0000 (17:50 -0500)]
xim: Stop using ::configure-event
The generic ::event will do.
Matthias Clasen [Mon, 1 Jan 2018 22:47:34 +0000 (17:47 -0500)]
tests: Stop using ::configure-event
The generic ::event will do.
Matthias Clasen [Mon, 1 Jan 2018 22:30:03 +0000 (17:30 -0500)]
Drop ::touch-event
This signal is not used in GTK+, and has a suitable
replacement with GtkGesture and its subclasses.
If you need to catch the raw touch events, the generic ::event
signal still works, too.
Matthias Clasen [Mon, 1 Jan 2018 22:24:16 +0000 (17:24 -0500)]
Drop ::scroll-event
This signal is not used in GTK+, and has a suitable
replacement with GtkEventControllerScroll.
If you need to catch these events, the generic ::event
signal still works, too.
Matthias Clasen [Mon, 1 Jan 2018 22:18:30 +0000 (17:18 -0500)]
Drop ::proximity-in-event and ::proximity-out-event
These are unused in GTK+, and are not very common.
If you need to catch these events, the generic ::event
signal still works.
Matthias Clasen [Mon, 1 Jan 2018 22:07:32 +0000 (17:07 -0500)]
Drop ::map-event and ::unmap-event
These are unused in GTK+, and are not very common.
If you need to catch these events, the generic ::event
signal still works.
Matthias Clasen [Mon, 1 Jan 2018 22:01:57 +0000 (17:01 -0500)]
window: Stop using ::map-event
Use ::event here, since we want to drop the event-specific
signals, and we already have a handler for the generic signal.
Matthias Clasen [Mon, 1 Jan 2018 21:57:55 +0000 (16:57 -0500)]
widget: Stop using ::map-event
Use ::event here, since we want to drop the event-specific
signals.
Matthias Clasen [Mon, 1 Jan 2018 21:51:37 +0000 (16:51 -0500)]
Drop GtkWidget::destroy-event
This signal is unused in GTK+, and is documented as
'hard to ever get', so there's no good reason for
keeping it.
Matthias Clasen [Mon, 1 Jan 2018 20:46:15 +0000 (15:46 -0500)]
Drop GtkWidget::delete-event
Nobody is using this signal anymore, and ::delete is there
for the few places where it is needed.
Matthias Clasen [Mon, 1 Jan 2018 20:27:16 +0000 (15:27 -0500)]
Replace all remaining uses of delete-event
Matthias Clasen [Mon, 1 Jan 2018 20:24:16 +0000 (15:24 -0500)]
Replace GtkWidget::delete-event by GtkWindow::close-request
The event is not useful at all, so we are better off
with a signal that doesn't have it, and it is only
relevant on toplevel windows, so we don't need it on
GtkWidget.
With this commit, delete events no longer go through the
::event, ::delete-event, ::event-after widget signals,
but just cause the ::close-request signal on GtkWindow to be
emitted.
Matthias Clasen [Mon, 1 Jan 2018 16:15:22 +0000 (11:15 -0500)]
testoverlay: Use an event controller
We can stop using ::enter-notify-event here, and use
our new motion event controller instead.
Matthias Clasen [Mon, 1 Jan 2018 16:08:44 +0000 (11:08 -0500)]
testgtk: Redo the event watcher case
Make this watch for emissions of ::event, since we
want to get rid of individual signals first.
Matthias Clasen [Mon, 1 Jan 2018 15:59:48 +0000 (10:59 -0500)]
testgtk: Use an event controller for 'testing scrolling'
The current code was not working with smooth scroll events,
for starters.
Matthias Clasen [Mon, 1 Jan 2018 15:25:57 +0000 (10:25 -0500)]
testinput: Drop some no-op signal handlers
These were not doing anything.
Matthias Clasen [Mon, 1 Jan 2018 14:04:56 +0000 (09:04 -0500)]
treeview: Don't handle ::delete-event
I don't think there is a way to get a delete event
on this popup - there's no window decorations, no close
button, etc. So no need to handle ::delete-event.
Matthias Clasen [Mon, 1 Jan 2018 05:49:38 +0000 (00:49 -0500)]
font chooser: Stop using ::scroll-event
We have an event controller for this purpose now.
Matthias Clasen [Mon, 1 Jan 2018 03:06:35 +0000 (22:06 -0500)]
treeview: Use a scroll event controller
This is the recommended way to deal with scroll events
now.
Matthias Clasen [Sun, 31 Dec 2017 19:19:34 +0000 (14:19 -0500)]
tests: Avoid a use of ::map-event
We can use the ::map signal here instead.
Matthias Clasen [Sun, 31 Dec 2017 19:13:26 +0000 (14:13 -0500)]
gtk-demo: Drop a use of ::event-after
It works just fine with ::event as well.
Matthias Clasen [Sun, 31 Dec 2017 17:49:53 +0000 (12:49 -0500)]
Drop gtk_true and gtk_false
These functions are entirely trivial, their documentation
is much longer than their implementation, and it contains
an example that is annotated as "don't do this"...
Matthias Clasen [Sun, 31 Dec 2017 18:03:31 +0000 (13:03 -0500)]
inspector: Stop using ::delete-event signal
We can just use GtkWindow::hide-on-close instead.
Matthias Clasen [Sun, 31 Dec 2017 17:57:39 +0000 (12:57 -0500)]
icon-browser: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-delete
Matthias Clasen [Sun, 31 Dec 2017 17:56:02 +0000 (12:56 -0500)]
widget-factory: Stop connecting to ::delete-event
We can use GtkWindow::hide-on-close instead
Matthias Clasen [Sun, 31 Dec 2017 17:54:42 +0000 (12:54 -0500)]
gtk-demo: Stop using ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 17:52:54 +0000 (12:52 -0500)]
tests: Stop using the delete-event signal
We can use ::destroy in most cases.
Matthias Clasen [Sun, 31 Dec 2017 17:17:53 +0000 (12:17 -0500)]
treeview: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 17:17:08 +0000 (12:17 -0500)]
doc tools: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 16:43:08 +0000 (11:43 -0500)]
dialog: Stop using the ::delete-event signal
We can achieve the desired result with a class handler
and the ::hide-on-close property.
Matthias Clasen [Sun, 31 Dec 2017 16:42:42 +0000 (11:42 -0500)]
file chooser native: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:41:59 +0000 (11:41 -0500)]
file chooser button: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:41:09 +0000 (11:41 -0500)]
applicationwindow: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:40:42 +0000 (11:40 -0500)]
about dialog: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 16:40:00 +0000 (11:40 -0500)]
color button: Stop connecting to ::delete-event
We can just use GtkWindow::hide-on-close.
Matthias Clasen [Sun, 31 Dec 2017 15:43:01 +0000 (10:43 -0500)]
font button: Use GtkWindow::hide-on-close
Instead of the ::delete-event signal.
Matthias Clasen [Sun, 31 Dec 2017 15:42:10 +0000 (10:42 -0500)]
window: Add a hide-on-close property
This lets us avoid ::delete-event signal handlers for just
this purpose.
Piotr Drąg [Mon, 15 Jan 2018 21:19:28 +0000 (22:19 +0100)]
Update Polish translation
Matthias Clasen [Mon, 15 Jan 2018 13:01:54 +0000 (08:01 -0500)]
inspector: Avoid a critical
I forgot to initialized the text field when I added
it back.
Matthias Clasen [Mon, 15 Jan 2018 13:01:01 +0000 (08:01 -0500)]
vulkan: use GDK_DISPLAY_NOTE
Where we have a display, we should use the per-display logging.
Timm Bäder [Mon, 15 Jan 2018 10:02:37 +0000 (11:02 +0100)]
vulkan: Fix build
This was changed in
e151058dffbfd3b43798c2e6813eae9b952ba2d1 but
GDK_NOTE only takes 2 arguments.
Timm Bäder [Mon, 15 Jan 2018 09:57:25 +0000 (10:57 +0100)]
tests: Update gl outset shadow tests
The results are slightly different for these now.
Timm Bäder [Mon, 15 Jan 2018 09:55:40 +0000 (10:55 +0100)]
gl renderer: Render unblurred outset shadows differently
We don't need to draw anything to a texure for those.
Timm Bäder [Mon, 15 Jan 2018 00:40:06 +0000 (01:40 +0100)]
gskcairoblur: Don't apply y_scale twice
A version of
29f36fed085d51bad16ec0e3f7ba5085bf9f82e8 but for the blur
we use in gsk.
Matthias Clasen [Sun, 14 Jan 2018 22:03:28 +0000 (17:03 -0500)]
Update docs for debug cleanup
Drop mention of GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE,
add docs for GSK_DEBUG and new debug keys that were added.
Matthias Clasen [Fri, 12 Jan 2018 04:55:27 +0000 (23:55 -0500)]
inspector: Some logging support
Add a way to toggle debug output on and off
from the inspector. For now, we don't add a
log viewer here, since that has the risk of
deadlock until we've the logging completely
separated by display, and also requires us
to install a log writer function, which
libraries are not supposed to do.
Matthias Clasen [Sun, 14 Jan 2018 21:07:12 +0000 (16:07 -0500)]
inspector: Turn off gsk debugging
We don't want debug spew from the renderer that
is used for the inspector window, so turn it off.
Matthias Clasen [Sun, 14 Jan 2018 21:06:25 +0000 (16:06 -0500)]
gsk: Add a setter for debug flags
We need to set the global flags, since these are picked
up initially by new renderers.
Matthias Clasen [Sun, 14 Jan 2018 20:11:33 +0000 (15:11 -0500)]
gsk: Reorganize env vars
Get rid of GSK_RENDERING_MODE and add the flags to GSK_DEBUG,
following the same pattern we use in gdk now.
Matthias Clasen [Sun, 14 Jan 2018 20:09:30 +0000 (15:09 -0500)]
gtk Use per-renderer flags for node names
We are moving to per-renderer flags, so lets check them here.
Matthias Clasen [Sun, 14 Jan 2018 14:52:52 +0000 (09:52 -0500)]
gsk: make logging per-renderer
Add a setter for per-renderer debug flags, and use
them where possible. Some places don't have easy access
to a renderer, so this is not complete.
Also, use g_message instead of g_print throughout.
Matthias Clasen [Sat, 13 Jan 2018 00:09:46 +0000 (19:09 -0500)]
gsk: Drop unused debug flags
We are not logging anything for transforms or rendernodes atm.
Matthias Clasen [Thu, 11 Jan 2018 19:17:01 +0000 (14:17 -0500)]
gsk: Clarify a debug message
We are printing a window type, not a display.
Matthias Clasen [Fri, 12 Jan 2018 12:40:38 +0000 (07:40 -0500)]
wayland: Use g_message for logging
g_printerr is not the best for this.
Matthias Clasen [Sat, 13 Jan 2018 01:38:26 +0000 (20:38 -0500)]
Drop the cairo-recording debug flag
It is not very useful. The cairo-image option on the
other hand is has been useful in tracking down problems
in the past, so we'll keep it.
Matthias Clasen [Sat, 13 Jan 2018 00:49:27 +0000 (19:49 -0500)]
Drop the gl-always debug option
This doesn't seem very useful.
Matthias Clasen [Fri, 12 Jan 2018 00:48:27 +0000 (19:48 -0500)]
Make gdk logging per-display
As far as possible, use per-display debug flags.
This will minimize the debug spew that we get from
the inspector if it is running on a separate display.
Matthias Clasen [Thu, 11 Jan 2018 13:53:57 +0000 (08:53 -0500)]
gdk: Reorganize env vars
Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE.
Merge the useful bits into GDK_DEBUG.
Drop unused debug flags (CURSOR).
Matthias Clasen [Sun, 14 Jan 2018 14:55:32 +0000 (09:55 -0500)]
Make geometry logging per-display
Use the new macro to do this.
Matthias Clasen [Sun, 14 Jan 2018 14:53:48 +0000 (09:53 -0500)]
icon theme: Make logging per-display
As far as possible, for now. This needs some more
work to cover all locations.
Matthias Clasen [Sun, 14 Jan 2018 14:54:45 +0000 (09:54 -0500)]
gtk: add a per-display log macro
This makes the conversion easier.